import java.util.HashMap;

public class StringCount {
    private HashMap<String,Integer> strs = new HashMap<>();

    StringCount(String [] ss){
        for(String str:ss){
            Integer temp = this.strs.put(str,1);
            if(temp!=null){
                this.strs.put(str,++temp);
            }
        }
    }

    private String countStr(String str){
        int count = this.strs.get(str);
        return "<"+str+"> = <"+count+">";
    }

    public void stringCountShow(){
        for(String str : this.strs.keySet()){
            System.out.println(countStr(str));
        }
    }
}
